package com.atguigu.classes.preconditions;

/**
 * @program: myIDEA
 * @description: i++
 * @author: Mr.zjx
 * create: 2021-07-04-20-39
 **/
public class Test04 {
    public static void main(String[] args) {
        int i = 1;
        int j = i++;
        System.out.println(i);//2
        System.out.println(j);//1

        int k = 2;
        int p = ++k;
        System.out.println(k);//3
        System.out.println(p);//3
    }
}
